package com.hkyp.ss.course.provider.repository.mediate;

import com.hkyp.ss.course.provider.model.mediate.UserCourseCollection;
import com.hkyp.ss.course.provider.repository.baseRepository.BaseRepository;

import java.util.List;
import java.util.Set;

public interface UserCourCollRepository extends BaseRepository<UserCourseCollection,Long> {

    UserCourseCollection findByCourseId(Long courseId);

    UserCourseCollection findByCourseIdAndUserId(Long courseId, Long userId);

    UserCourseCollection findByUserId(Long userId);

    List<UserCourseCollection> findAllByUserIdAndAndCourseIdIn(Long userId, Set<Long> courseIds);
}